/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.future.projects.imobiliaria.forms;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 *
 * @author dctp
 */
public class UsuarioFormBean {

    private Long id;
    @NotEmpty(message = "O campo login deve ser preenchido")
    private String login;
    @Length(min = 6, max = 20, message = "A senha deve ter de 6 a 20 caracteres")
    private String password;

    @NotEmpty(message = "O campo nome deve ser preenchido")
    private String nome;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

}
